/**
 * JAVACC DEMO 1.0
 */
package com.apache.rpc;

import com.apache.api.entity.BaseEntity;
import com.apache.api.vo.ParamsVo;
import com.apache.rpc.entity.Protocol;

/**
 * description:  通信协议接口,支持socket,http,https以及Webservice
 *
 * @author Hou Dayu 创建时间：2016-10-28
 */
public interface ProtocolService {

    Object doService(Protocol protocol);

    Object doService(String beanId, ParamsVo<BaseEntity> vo);

    public boolean isExites(String beanId);

    String doServiceStr(Protocol protocol);
}
